<template>
  <div>
    <div>课程管理</div>
<div class="search">
输入搜索 <input type="text" placeholder="输入课程ID" class="CS" v-model="keyword">
上次消费时间
<!-- 开始日期 -->
<div class="block">
    <el-date-picker
      v-model="value1"
      type="date"
      placeholder="开始日期">
    </el-date-picker>
  </div>
<!-- 结束日期 -->
<div class="block">
    <el-date-picker
      v-model="value2"
      type="date"
      placeholder="结束日期">
    </el-date-picker>
  </div>

<button @click='seachhander'>查询</button>
<button @click='resethander'>重置</button>
<!-- 筛选框 -->
<el-dropdown>
  <el-button type="primary">
    高级筛选<i class="el-icon-arrow-down el-icon--right"></i>
  </el-button>
  <el-dropdown-menu slot="dropdown">
    <el-dropdown-item>上架</el-dropdown-item>
    <el-dropdown-item>下架</el-dropdown-item>
    <el-dropdown-item>上传人</el-dropdown-item>
    <el-dropdown-item>课程名称</el-dropdown-item>

  </el-dropdown-menu>
</el-dropdown>


</div>
  </div>
</template>

<script>
export default {
data(){
return{
     pickerOptions: {
          disabledDate(time) {
            return time.getTime() > Date.now();
          }
        },
        value1: '',
        value2: '',
        keyword:'',
}




},
methods:{
seachhander(){
  console.log(this.keyword);
this.$emit('parentSeach',this.keyword)
},
// 充值页面
resethander(){  
this.$emit('parentSeach','')
}

}

        }    
</script>

<style lang="less" scoped>
 /deep/ .search{
    width: 100%;
    height: 64px;
    background-color: #fff;
    display: flex;
    align-items: center;
    margin: 21px 0px;
    justify-content: space-between;
    .CS{
        height: 32px;
        width: 150px;
    }
}


</style>